<script>
 var json = {
   msg: 'hello',
   attr: condition
       ? "This message"
       : "Some other message"
 }
</script>
